/*
========================================_!WPARTY!_========================================
=== WParty Team Death Match
=== V.0.1.0
=== Author: Damian (Xtreme) Wojdat
=== Developing since 2012-10 - created from 0
==========================================================================================
*/

// bData[buildingid].buildingType = 0; // urzad
// bData[buildingid].buildingType = 1; // policja
// bData[buildingid].buildingType = 2; // pogotowie

// iData[itemid].type = 0; // no item
// iData[itemid].type = 1; // vehicle keys
// iData[itemid].type = 2; // items with option status ex. battery for GPS or fuel for petrol can
// iData[itemid].type = 3; // normal item

// fData[factionid].type = 0; // neutral, just group of people wants to be in team
// fData[factionid].type = 1; // law protector (ex. police) - SPECIAL
// fData[factionid].type = 2; // gangs
// fData[factionid].type = 3; // protector, private - depends on police
// fData[factionid].type = 4; // taxi
// fData[factionid].type = 5; // news and weather only one - SPECIAL

dofile("scripts/crypto.nut");
dofile("scripts/easyini.nut");
dofile("scripts/wp/wp_vars.nut",true);
dofile("scripts/wp/wp_utils.nut",true);
dofile("scripts/wp/wp_savedata.nut",true); 
dofile("scripts/wp/wp_load.nut",true);
dofile("scripts/wp/wp_timers.nut",true);
dofile("scripts/wp/wp_itemfncs.nut",true);
dofile("scripts/wp/wp_cmds.nut",true);
dofile("scripts/wp/wp_onscript.nut",true);
dofile("scripts/wp/wp_player.nut",true);
dofile("scripts/wp/wp_vehicle.nut",true);
dofile("scripts/indicators.nut",true);
dofile("scripts/wp/mysql.nut");

function onConsoleInput(input)
{
	local inputz = split(input, " ");
	for(local i = 0; i < inputz.len(); i++)
	{
		log("inputz[" + i + "] = " + inputz[i] + " len = " + inputz[i].len());
	}
	if(inputz[0] == "hello")
	{
		if(inputz.len() > 1)
		{
			log("str = " + inputz.slice(0, 6));
		}
	}
	return 1;
}	
addEvent("consoleInput", onConsoleInput);